import React,{Component} from 'react';
import {Text,Button,View} from 'react-native';

export default class Demo19CheckComponent extends Component{
   jump=()=>{
    this.props.navigation
    .navigate('pay',{price:100})
   }

   render(){
     return <View>
        <Text>这是商品的查看页面</Text>
        <Button onPress={this.jump} 
        title="去支付"></Button>
       </View>
   }
}